package com.lz.rocketmq.consumer2.project.controller;


import com.lz.rocketmq.consumer2.project.listener.ConsumerTradeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/calc")
public class CalcController {

    @Resource
    private ConsumerTradeService  consumerTradeService;

    @GetMapping("/hi")
    public String send( ) {
        return  consumerTradeService.getReceive();

    }


}